package com.thermofisher.dsc.amanda.common.excel.type;

import com.alibaba.excel.metadata.BaseRowModel;
import com.thermofisher.dsc.amanda.common.excel.model.E1Customer;
import com.thermofisher.dsc.amanda.common.excel.model.ITSCARCache;
import com.thermofisher.dsc.amanda.common.excel.model.InventoryExcel;
import com.thermofisher.dsc.amanda.common.excel.model.SaleCustomer;
import com.thermofisher.dsc.amanda.common.excel.model.SkuPrice;

/**
 * @author wenjie.yang on 4/4/2019.
 */
public enum ParseExcelType {

  E1CustomerType(1,1,E1Customer.class,"C:\\Users\\wenjie.yang\\Desktop\\项目\\amanda\\E1Customer.xlsx"),
  ITSCARCacheType(5,1, ITSCARCache.class,"C:\\Users\\wenjie.yang\\Desktop\\项目\\amanda\\ITSCAR.xlsx"),
  InventoryExcelType(1,1, InventoryExcel.class,"C:\\Users\\wenjie.yang\\Desktop\\项目\\amanda\\inventory.xlsx"),
  SaleCustomerType(1,1, SaleCustomer.class,"C:\\Users\\wenjie.yang\\Desktop\\项目\\amanda\\salesCustomerMap.xlsx"),
  SkuPriceType(2,0, SkuPrice.class,"C:\\Users\\wenjie.yang\\Desktop\\项目\\amanda\\SKUPrice.xlsx")
  ;
  private int sheetNo;
  private int headLine;
  private Class<? extends BaseRowModel> type;
  private String sourcePath;


  public int getSheetNo() {
    return sheetNo;
  }

  public void setSheetNo(int sheetNo) {
    this.sheetNo = sheetNo;
  }

  public int getHeadLine() {
    return headLine;
  }

  public void setHeadLine(int headLine) {
    this.headLine = headLine;
  }

  public Class getType() {
    return type;
  }

  public void setType(Class type) {
    this.type = type;
  }

  public String getSourcePath() {
    return sourcePath;
  }

  public void setSourcePath(String sourcePath) {
    this.sourcePath = sourcePath;
  }

  ParseExcelType(int sheetNo, int headLine, Class type,String sourcePath) {
    this.sheetNo = sheetNo;
    this.headLine = headLine;
    this.type = type;
    this.sourcePath=sourcePath;
  }
}
